package com.devilwwj.update;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.devilwwj.update.http.AppUpdateManager;

public class MainActivity extends AppCompatActivity {


    private Button btnCheckUpdate;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnCheckUpdate = (Button) findViewById(R.id.btn_checkupdate);

        btnCheckUpdate.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                // 这里去检查更新
                AppUpdateManager.getInstance(MainActivity.this).checkUpdate();

            }
        });
    }



}
